function getCities() {
    var cities = [];
    for (var i = 0; i < 5; i++) {
        cities.push({
            id: i + 1,
            name: 'city' + (i + 1)
        })
    }
    console.log(cities);
    return cities;
}


var menus = [
    {
        id: 1,
        title: '项目1',
        children: [
            {
                id: 11,
                title: '项目1-1'
            }, {
                id: 12,
                title: '项目1-2'
            }
        ]
    }, {
        id: 2,
        title: '项目2'
    }
]